//	--------------------------------------------------------------------
//	Copyright(C) 2006,2007 Zhao Yukun. All rights reserved.
//	This file is a part of the Xeres system.
//	Xeres 2007
//	Contact : xeres.engine@gmail.com
//	$(reservedInfo)
//	$(reservedDeclaration)
//	--------------------------------------------------------------------
///	@file	<IRenderTargetSet.h>
///	@path	~/src/graphics/
///	@date	2009/01/23
///	@desc	.

#pragma once

#include "xeres.h"

#include "graphics/IDevice.h"
#include "graphics/IRenderTarget.h"

namespace xeres {

	// forward declaration
	class RenderContext;

	/*! 
		\class	IRenderTargetSet
		\brief
	*/
	class IRenderTargetSet : public IObject
	{
	public:

		/// \ctor
		IRenderTargetSet( void );

		/// \dtor
		virtual ~IRenderTargetSet( void );

		DECL_IOBJECT_INTERFACE( IRenderTargetSet , IObject );

	public:

		/// \name Render Target Set Interface
		//@{

		/// \brief	Get render target resolution of render target set.
		virtual Pair<int> GetSize( void ) = 0;

		/// \brief	Get available render target count.
		virtual uint GetCount( void ) = 0;

		/// \brief	Bind render target by index.
		virtual void BindTarget( uint index , RefWeak<IRenderTarget> target ) = 0;

		/// \brief	Unbind all render targets.
		virtual void UnbindAll( void ) = 0;

		/// \brief	Apply render target set to device.
		virtual void ApplyTarget( RenderContext& rc ) = 0;

		//@}
	};
	
} // namespace xeres
